import request from '@/utils/request'

export default {

  getPageList(page, limit) {
    return request({
      url: `/user/selectUser/${page}/${limit}`,
      method: 'get'
    })
  },
  searchPageList(page, limit, searchObj) {
    return request({
      url: `/user/selectUser/${page}/${limit}`,
      method: 'post',
      data: searchObj
    })
  },

  deleteUserId(userid) {
    return request({
      url: `/user/deleteUser/${userid}`,
      method: 'get'
    })
  },

  repeatUser(userId){
    return request({
      url: `/user/repeatUser/${userId}`,
      method: 'get'
    })
  },

  getOne(userId) {
    return request({
      url: `/user/selectOne/${userId}`,
      method: 'get',
      // data: searchObj
    })
  },

  updateUser(updateObj) {
    return request({
      url: `/user/updateUser`,
      method: 'post',
      data: updateObj
    })
  },



}
